package com.zhuxiaomei.entity.user;

import com.zhuxiaomei.entity.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author hxm
 * @date 2024/11/9 16:07
 * @description
 */
@Table(name = "users")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class User extends BaseEntity {

    /**
     * 账号
     */
    private String account;

    /**
     * 密码
     */
    private String passwd;

    /**
     * 用户名
     */
    private String userName;

    /**
     * 生日
     */
    private LocalDate birthday;

    /**
     * 头像地址
     */
    private String avatar;

    /**
     * 性别，1：男，0：女
     */
    private Byte sex;

    /**
     * 账号余额
     */
    private BigDecimal balance;

}
